package com.example.unruly_zhao.mopaide.dialog;

import android.os.Parcel;
import android.os.Parcelable;

public abstract class Dialog_ViewConvertListener implements Parcelable {

    protected abstract void convertView(Dialog_ViewHolder holder, Dialog_BaseNiceDialog dialog);

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }

    public Dialog_ViewConvertListener() {
    }

    protected Dialog_ViewConvertListener(Parcel in) {
    }

    public static final Creator<Dialog_ViewConvertListener> CREATOR = new Creator<Dialog_ViewConvertListener>() {
        @Override
        public Dialog_ViewConvertListener createFromParcel(Parcel source) {
            return new Dialog_ViewConvertListener(source){
                @Override
                protected void convertView(Dialog_ViewHolder holder, Dialog_BaseNiceDialog dialog) {

                }
            };
        }

        @Override
        public Dialog_ViewConvertListener[] newArray(int size) {
            return new Dialog_ViewConvertListener[size];
        }
    };
}
